<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Mail::Sendmail - Simple platform independent mailer - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Mail-Sendmail - MetaCPAN" href="https://metacpan.org/dist/Mail-Sendmail/releases.rss" />
        <link rel="canonical" href="./Mail::Sendmail.html" />
        <meta name="description" content="Simple platform independent mailer" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Mail::Sendmail" />
<meta name="twitter:title"       content="Mail::Sendmail" />
<meta name="twitter:description" content="Simple platform independent mailer" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Mail::Sendmail.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Mail-Sendmail was released.">
      <span class="relatize">20 Aug 2017 19:22:10 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Mail-Sendmail">Mail-Sendmail</a>
  </li>
  <li>
    Module version: 0.80
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Mail-Sendmail/source/lib/Mail/Sendmail.pm">Source</a>
    (<a href="https://metacpan.org/dist/Mail-Sendmail/source/lib/Mail/Sendmail.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Mail-Sendmail/source/lib/Mail">Browse</a>
    (<a href="https://metacpan.org/dist/Mail-Sendmail/source/lib/Mail?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Mail-Sendmail/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/neilb/Mail-Sendmail">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Mail-Sendmail/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/neilb/Mail-Sendmail">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=Mail-Sendmail">Issues</a>
      (16)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Mail-Sendmail+0.80" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/M/Mail-Sendmail.html?oncpan=1&amp;distmat=1&amp;version=0.80&amp;grade=2" style="color: #090">23</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/M/Mail-Sendmail.html?oncpan=1&amp;distmat=1&amp;version=0.80&amp;grade=3" style="color: #900">153</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/M/Mail-Sendmail.html?oncpan=1&amp;distmat=1&amp;version=0.80&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/NEILB/Mail-Sendmail-0.80">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Mail-Sendmail who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 2
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Mail-Sendmail-0.80/index.html">44.03% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.6.0
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Mail-Sendmail/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Mail-Sendmail-0.80.tar.gz">
      Download (<span itemprop="fileSize">22.99KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FNEILB%2FMail-Sendmail-0.80%2Flib%2FMail%2FSendmail.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Mail-Sendmail/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Mail-Sendmail/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Mail-Sendmail">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Mail-Sendmail">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Mail/Sendmail.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="NEILB/Mail-Sendmail-0.80"
>0.80
  (NEILB on 2017-08-20)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.79_16"
>0.79_16 DEV
  (MIVKOVIC on 2006-07-08)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.79"
>0.79
  (MIVKOVIC on 2003-02-06)</option>
<optgroup label="BackPAN">'
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_6"
>0.78_6 DEV
  (MIVKOVIC on 2003-02-06)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_5"
>0.78_5 DEV
  (MIVKOVIC on 2002-08-24)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_3"
>0.78_3 DEV
  (MIVKOVIC on 2002-08-11)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_2"
>0.78_2 DEV
  (MIVKOVIC on 2002-08-11)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78"
>0.78
  (MIVKOVIC on 2000-09-25)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.77"
>0.77
  (MIVKOVIC on 1999-03-28)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.76"
>0.76
  (MIVKOVIC on 1999-03-27)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.75"
>0.75
  (MIVKOVIC on 1999-03-27)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.74"
>0.74
  (MIVKOVIC on 1998-08-01)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.73"
>0.73
  (MIVKOVIC on 1998-07-13)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.72"
>0.72
  (MIVKOVIC on 1998-07-08)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.71"
>0.71
  (MIVKOVIC on 1998-07-07)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail_0.70"
>0.70
  (MIVKOVIC on 1998-06-18)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/NEILB/Mail-Sendmail-0.80/diff/' + encodeURIComponent(this.value) + '/lib/Mail/Sendmail.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="NEILB/Mail-Sendmail-0.80"
>0.80
  (NEILB on 2017-08-20)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.79_16"
>0.79_16 DEV
  (MIVKOVIC on 2006-07-08)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.79"
>0.79
  (MIVKOVIC on 2003-02-06)</option>
<optgroup label="BackPAN">'
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_6"
>0.78_6 DEV
  (MIVKOVIC on 2003-02-06)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_5"
>0.78_5 DEV
  (MIVKOVIC on 2002-08-24)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_3"
>0.78_3 DEV
  (MIVKOVIC on 2002-08-11)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_2"
>0.78_2 DEV
  (MIVKOVIC on 2002-08-11)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78"
>0.78
  (MIVKOVIC on 2000-09-25)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.77"
>0.77
  (MIVKOVIC on 1999-03-28)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.76"
>0.76
  (MIVKOVIC on 1999-03-27)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.75"
>0.75
  (MIVKOVIC on 1999-03-27)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.74"
>0.74
  (MIVKOVIC on 1998-08-01)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.73"
>0.73
  (MIVKOVIC on 1998-07-13)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.72"
>0.72
  (MIVKOVIC on 1998-07-08)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.71"
>0.71
  (MIVKOVIC on 1998-07-07)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail_0.70"
>0.70
  (MIVKOVIC on 1998-06-18)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Digest::MD5" title="Digest::MD5" class="ellipsis">Digest::MD5</a></li>
  <li><a href="https://metacpan.org/pod/Exporter" title="Exporter" class="ellipsis">Exporter</a></li>
  <li><a href="https://metacpan.org/pod/MIME::Base64" title="MIME::Base64" class="ellipsis">MIME::Base64</a></li>
  <li><a href="https://metacpan.org/pod/Socket" title="Socket" class="ellipsis">Socket</a></li>
  <li><a href="https://metacpan.org/pod/Sys::Hostname" title="Sys::Hostname" class="ellipsis">Sys::Hostname</a></li>
  <li><a href="https://metacpan.org/pod/Time::Local" title="Time::Local" class="ellipsis">Time::Local</a></li>
  <li><a href="https://metacpan.org/pod/parent" title="parent" class="ellipsis">parent</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/vars" title="vars" class="ellipsis">vars</a></li>
  <li><a href="https://metacpan.org/pod/warnings" title="warnings" class="ellipsis">warnings</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Mail::Sendmail/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Mail%3A%3ASendmail">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Mail-Sendmail">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/NEILB/Mail-Sendmail-0.80/view/lib/Mail/Sendmail.pm">This version</a>
    </li>
    <li>
      <a href="./Mail::Sendmail.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/PERLBOY"><img src="https://www.gravatar.com/avatar/8553a87a00c8d2efcd77fb16e6eb73c9?d=identicon&amp;s=20" title="PERLBOY" alt="PERLBOY"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Mail-Sendmail/plussers">1 PAUSE user</a>
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-cpan-author="MIVKOVIC"
      data-contrib-email="mivkovic@cpan.org"
    >
      <a href="https://metacpan.org/author/MIVKOVIC" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/1b65905d8a53959012293c2f72c54623?d=identicon&amp;s=20" />
      Milivoj Ivkovic
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/NEILB" class="author-name">Neil Bowers</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Mail/Sendmail.pm&#39;" class="">
<option
  selected
  value="NEILB/Mail-Sendmail-0.80"
>0.80
  (NEILB on 2017-08-20)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.79_16"
>0.79_16 DEV
  (MIVKOVIC on 2006-07-08)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.79"
>0.79
  (MIVKOVIC on 2003-02-06)</option>
<optgroup label="BackPAN">'
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_6"
>0.78_6 DEV
  (MIVKOVIC on 2003-02-06)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_5"
>0.78_5 DEV
  (MIVKOVIC on 2002-08-24)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_3"
>0.78_3 DEV
  (MIVKOVIC on 2002-08-11)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78_2"
>0.78_2 DEV
  (MIVKOVIC on 2002-08-11)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.78"
>0.78
  (MIVKOVIC on 2000-09-25)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.77"
>0.77
  (MIVKOVIC on 1999-03-28)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.76"
>0.76
  (MIVKOVIC on 1999-03-27)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.75"
>0.75
  (MIVKOVIC on 1999-03-27)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.74"
>0.74
  (MIVKOVIC on 1998-08-01)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.73"
>0.73
  (MIVKOVIC on 1998-07-13)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.72"
>0.72
  (MIVKOVIC on 1998-07-08)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail-0.71"
>0.71
  (MIVKOVIC on 1998-07-07)</option>
<option
  
  value="MIVKOVIC/Mail-Sendmail_0.70"
>0.70
  (MIVKOVIC on 1998-06-18)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Mail-Sendmail">Mail-Sendmail-0.80</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage two &#10;
          • 20 direct dependents &#10;          • 56 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Mail-Sendmail-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Mail-Sendmail-0.80">
    <input type="hidden" name="author" value="NEILB">
    <input type="hidden" name="distribution" value="Mail-Sendmail">
    <button type="submit" class="favorite highlight"><span>1</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Mail::Sendmail.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>1</span> ++</a>
</div>
   / <span>Mail::Sendmail</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Mail::Sendmail.html#NAME">NAME</a></li>
  <li><a href="./Mail::Sendmail.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Mail::Sendmail.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Mail::Sendmail.html#INSTALLATION">INSTALLATION</a></li>
  <li><a href="./Mail::Sendmail.html#FEATURES">FEATURES</a></li>
  <li><a href="./Mail::Sendmail.html#LIMITATIONS">LIMITATIONS</a></li>
  <li><a href="./Mail::Sendmail.html#CONFIGURATION">CONFIGURATION</a></li>
  <li><a href="./Mail::Sendmail.html#DETAILS">DETAILS</a>
    <ul>
      <li><a href="./Mail::Sendmail.html#sendmail()">sendmail()</a>
        <ul>
          <li><a href="./Mail::Sendmail.html#embedding-options-in-your-%25mail-hash">embedding options in your %mail hash</a></li>
        </ul>
      </li>
      <li><a href="./Mail::Sendmail.html#Mail::Sendmail::time_to_date()">Mail::Sendmail::time_to_date()</a></li>
      <li><a href="./Mail::Sendmail.html#$Mail::Sendmail::error">$Mail::Sendmail::error</a></li>
      <li><a href="./Mail::Sendmail.html#$Mail::Sendmail::log">$Mail::Sendmail::log</a></li>
      <li><a href="./Mail::Sendmail.html#$Mail::Sendmail::address_rx">$Mail::Sendmail::address_rx</a></li>
      <li><a href="./Mail::Sendmail.html#%25Mail::Sendmail::mailcfg">%Mail::Sendmail::mailcfg</a></li>
      <li><a href="./Mail::Sendmail.html#$Mail::Sendmail::VERSION">$Mail::Sendmail::VERSION</a></li>
      <li><a href="./Mail::Sendmail.html#Configuration-variables-from-previous-versions">Configuration variables from previous versions</a></li>
    </ul>
  </li>
  <li><a href="./Mail::Sendmail.html#ANOTHER-EXAMPLE">ANOTHER EXAMPLE</a></li>
  <li><a href="./Mail::Sendmail.html#CHANGES">CHANGES</a></li>
  <li><a href="./Mail::Sendmail.html#NOTES">NOTES</a></li>
  <li><a href="./Mail::Sendmail.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Mail::Sendmail.html#COPYRIGHT">COPYRIGHT</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Mail::Sendmail - Simple platform independent mailer</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>  use Mail::Sendmail;

  %mail = ( To      =&gt; &#39;you@there.com&#39;,
            From    =&gt; &#39;me@here.com&#39;,
            Message =&gt; &quot;This is a very short message&quot;
           );

  sendmail(%mail) or die $Mail::Sendmail::error;

  print &quot;OK. Log says:\n&quot;, $Mail::Sendmail::log;</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>Simple platform independent e-mail from your perl script. Only requires Perl 5 and a network connection.</p>

<p>Mail::Sendmail takes a hash with the message to send and sends it to your mail server. It is intended to be very easy to setup and use. See also <a href="./Mail::Sendmail.html#FEATURES">&quot;FEATURES&quot;</a> below, and as usual, read this documentation.</p>

<p>There is also a FAQ (see <a href="./Mail::Sendmail.html#NOTES">&quot;NOTES&quot;</a>).</p>

<h1 id="INSTALLATION">INSTALLATION</h1>

<dl>

<dt id="Best">Best</dt>
<dd>

<p><code>perl -MCPAN -e &quot;install Mail::Sendmail&quot;</code></p>

</dd>
<dt id="Traditional">Traditional</dt>
<dd>

<pre><code>    perl Makefile.PL
    make
    make test
    make install</code></pre>

</dd>
<dt id="Manual">Manual</dt>
<dd>

<p>Copy Sendmail.pm to Mail/ in your Perl lib directory.</p>

<pre><code>    (eg. c:\Perl\site\lib\Mail\
     or  /usr/lib/perl5/site_perl/Mail/
     or whatever it is on your system.
     They are listed when you type C&lt; perl -V &gt;)</code></pre>

</dd>
<dt id="ActivePerl&#39;s-PPM"><a id="ActivePerl"></a><a id="ActivePerl-s-PPM"></a>ActivePerl&#39;s PPM</dt>
<dd>

<p>Depending on your PPM version:</p>

<pre><code>    ppm install --location=http://alma.ch/perl/ppm Mail-Sendmail</code></pre>

<p>or</p>

<pre><code>    ppm install http://alma.ch/perl/ppm/Mail-Sendmail.ppd</code></pre>

<p>But this way you don&#39;t get a chance to have a look at other files (Changes, Todo, test.pl, ...).</p>

</dd>
</dl>

<p>At the top of Sendmail.pm, set your default SMTP server(s), unless you specify it with each message, or want to use the default (localhost).</p>

<p>Install MIME::QuotedPrint. This is not required but strongly recommended.</p>

<h1 id="FEATURES">FEATURES</h1>

<p>Automatic time zone detection, Date: header, MIME quoted-printable encoding (if MIME::QuotedPrint installed), all of which can be overridden.</p>

<p>Bcc: and Cc: support.</p>

<p>Allows real names in From:, To: and Cc: fields</p>

<p>Doesn&#39;t send an X-Mailer: header (unless you do), and allows you to send any header(s) you want.</p>

<p>Configurable retries and use of alternate servers if your mail server is down</p>

<p>Good plain text error reporting</p>

<p>Experimental support for SMTP AUTHentication</p>

<h1 id="LIMITATIONS">LIMITATIONS</h1>

<p>Headers are not encoded, even if they have accented characters.</p>

<p>Since the whole message is in memory, it&#39;s not suitable for sending very big attached files.</p>

<p>The SMTP server has to be set manually in Sendmail.pm or in your script, unless you have a mail server on localhost.</p>

<p>Doesn&#39;t work on OpenVMS, I was told. Cannot test this myself.</p>

<h1 id="CONFIGURATION">CONFIGURATION</h1>

<dl>

<dt id="Default-SMTP-server(s)"><a id="Default"></a><a id="Default-SMTP-server-s"></a>Default SMTP server(s)</dt>
<dd>

<p>This is probably all you want to configure. It is usually done through <i>$mailcfg{smtp}</i>, which you can edit at the top of the Sendmail.pm file. This is a reference to a list of SMTP servers. You can also set it from your script:</p>

<p><code>unshift @{$Mail::Sendmail::mailcfg{&#39;smtp&#39;}} , &#39;my.mail.server&#39;;</code></p>

<p>Alternatively, you can specify the server in the <i>%mail</i> hash you send from your script, which will do the same thing:</p>

<p><code>$mail{smtp} = &#39;my.mail.server&#39;;</code></p>

<p>A future version will (hopefully) try to set useful defaults for you during the Makefile.PL.</p>

</dd>
<dt id="Other-configuration-settings"><a id="Other"></a>Other configuration settings</dt>
<dd>

<p>See <i>%mailcfg</i> under <a href="./Mail::Sendmail.html#DETAILS">&quot;DETAILS&quot;</a> below for other configuration options.</p>

</dd>
</dl>

<h1 id="DETAILS">DETAILS</h1>

<h2 id="sendmail()"><a id="sendmail"></a>sendmail()</h2>

<p>sendmail is the only thing exported to your namespace by default</p>

<p><code>sendmail(%mail) || print &quot;Error sending mail: $Mail::Sendmail::error\n&quot;;</code></p>

<p>It takes a hash containing the full message, with keys for all headers and the body, as well as for some specific options.</p>

<p>It returns 1 on success or 0 on error, and rewrites <code>$Mail::Sendmail::error</code> and <code>$Mail::Sendmail::log</code>.</p>

<p>Keys are NOT case-sensitive.</p>

<p>The colon after headers is not necessary.</p>

<p>The Body part key can be called &#39;Body&#39;, &#39;Message&#39; or &#39;Text&#39;.</p>

<p>The SMTP server key can be called &#39;Smtp&#39; or &#39;Server&#39;. If the connection to this one fails, the other ones in <code>$mailcfg{smtp}</code> will still be tried.</p>

<p>The following headers are added unless you specify them yourself:</p>

<pre><code>    Mime-Version: 1.0
    Content-Type: &#39;text/plain; charset=&quot;iso-8859-1&quot;&#39;

    Content-Transfer-Encoding: quoted-printable
    or (if MIME::QuotedPrint not installed)
    Content-Transfer-Encoding: 8bit

    Date: [string returned by time_to_date()]</code></pre>

<p>If you wish to use an envelope sender address different than the From: address, set <code>$mail{Sender}</code> in your %mail hash.</p>

<p>The following are not exported by default, but you can still access them with their full name, or request their export on the use line like in: <code>use Mail::Sendmail qw(sendmail $address_rx time_to_date);</code></p>

<h3 id="embedding-options-in-your-%mail-hash"><a id="embedding"></a><a id="embedding-options-in-your--mail-hash"></a>embedding options in your %mail hash</h3>

<p>The following options can be set in your %mail hash. The corresponding keys will be removed before sending the mail.</p>

<dl>

<dt id="$mail{smtp}-or-$mail{server}"><a id="mail-smtp--or--mail-server"></a>$mail{smtp} or $mail{server}</dt>
<dd>

<p>The SMTP server to try first. It will be added</p>

</dd>
<dt id="$mail{port}"><a id="mail-port"></a>$mail{port}</dt>
<dd>

<p>This option will be removed. To use a non-standard port, set it in your server name:</p>

<p>$mail{server}=&#39;my.smtp.server:2525&#39; will try to connect to port 2525 on server my.smtp.server</p>

</dd>
<dt id="$mail{auth}"><a id="mail-auth"></a>$mail{auth}</dt>
<dd>

<p>This must be a reference to a hash containg all your authentication options:</p>

<p>$mail{auth} = \%options; or $mail{auth} = {user=&gt;&quot;username&quot;, password=&gt;&quot;password&quot;, method=&gt;&quot;DIGEST-MD5&quot;, required=&gt;0 };</p>

<dl>

<dt id="user">user</dt>
<dd>

<p>username</p>

</dd>
<dt id="pass-or-password"><a id="pass"></a>pass or password</dt>
<dd>

<p>password</p>

</dd>
<dt id="method">method</dt>
<dd>

<p>optional method. compared (stripped down) to available methods. If empty, will try all available.</p>

</dd>
<dt id="required">required</dt>
<dd>

<p>optional. defaults to false. If set to true, no delivery will be attempted if authentication fails. If false or undefined, and authentication fails or is not available, sending is tried without.</p>

<p>(different auth for different servers?)</p>

</dd>
</dl>

</dd>
</dl>

<h2 id="Mail::Sendmail::time_to_date()"><a id="Mail"></a><a id="Mail::Sendmail::time_to_date"></a>Mail::Sendmail::time_to_date()</h2>

<p>convert time ( as from <code>time()</code> ) to an RFC 822 compliant string for the Date header. See also <a href="./Mail::Sendmail.html#%25Mail::Sendmail::mailcfg">&quot;%Mail::Sendmail::mailcfg&quot;</a>.</p>

<h2 id="$Mail::Sendmail::error"><a id="Mail::Sendmail::error"></a>$Mail::Sendmail::error</h2>

<p>When you don&#39;t run with the <b>-w</b> flag, the module sends no errors to STDERR, but puts anything it has to complain about in here. You should probably always check if it says something.</p>

<h2 id="$Mail::Sendmail::log"><a id="Mail::Sendmail::log"></a>$Mail::Sendmail::log</h2>

<p>A summary that you could write to a log file after each send</p>

<h2 id="$Mail::Sendmail::address_rx"><a id="Mail::Sendmail::address_rx"></a>$Mail::Sendmail::address_rx</h2>

<p>A handy regex to recognize e-mail addresses.</p>

<p>A correct regex for valid e-mail addresses was written by one of the judges in the obfuscated Perl contest... :-) It is quite big. This one is an attempt to a reasonable compromise, and should accept all real-world internet style addresses. The domain part is required and comments or characters that would need to be quoted are not supported.</p>

<pre><code>  Example:
    $rx = $Mail::Sendmail::address_rx;
    if (/$rx/) {
      $address=$1;
      $user=$2;
      $domain=$3;
    }</code></pre>

<h2 id="%Mail::Sendmail::mailcfg"><a id="Mail::Sendmail::mailcfg"></a>%Mail::Sendmail::mailcfg</h2>

<p>This hash contains installation-wide configuration options. You normally edit it once (if ever) in Sendmail.pm and forget about it, but you could also access it from your scripts. For readability, I&#39;ll assume you have imported it (with something like <code>use Mail::Sendmail qw(sendmail %mailcfg)</code>).</p>

<p>The keys are not case-sensitive: they are all converted to lowercase before use. Writing <code>$mailcfg{Port} = 2525;</code> is OK: the default $mailcfg{port} (25) will be deleted and replaced with your new value of 2525.</p>

<dl>

<dt id="$mailcfg{smtp}"><a id="mailcfg-smtp"></a>$mailcfg{smtp}</dt>
<dd>

<p><code>$mailcfg{smtp} = [qw(localhost my.other.mail.server)];</code></p>

<p>This is a reference to a list of smtp servers, so if your main server is down, the module tries the next one. If one of your servers uses a special port, add it to the server name with a colon in front, to override the default port (like in my.special.server:2525).</p>

<p>Default: localhost.</p>

</dd>
<dt id="$mailcfg{from}"><a id="mailcfg-from"></a>$mailcfg{from}</dt>
<dd>

<p><code>$mailcfg{from} = &#39;Mailing script me@mydomain.com&#39;;</code></p>

<p>From address used if you don&#39;t supply one in your script. Should not be of type &#39;user@localhost&#39; since that may not be valid on the recipient&#39;s host.</p>

<p>Default: undefined.</p>

</dd>
<dt id="$mailcfg{mime}"><a id="mailcfg-mime"></a>$mailcfg{mime}</dt>
<dd>

<p><code>$mailcfg{mime} = 1;</code></p>

<p>Set this to 0 if you don&#39;t want any automatic MIME encoding. You normally don&#39;t need this, the module should &#39;Do the right thing&#39; anyway.</p>

<p>Default: 1;</p>

</dd>
<dt id="$mailcfg{retries}"><a id="mailcfg-retries"></a>$mailcfg{retries}</dt>
<dd>

<p><code>$mailcfg{retries} = 1;</code></p>

<p>How many times should the connection to the same SMTP server be retried in case of a failure.</p>

<p>Default: 1;</p>

</dd>
<dt id="$mailcfg{delay}"><a id="mailcfg-delay"></a>$mailcfg{delay}</dt>
<dd>

<p><code>$mailcfg{delay} = 1;</code></p>

<p>Number of seconds to wait between retries. This delay also happens before trying the next server in the list, if the retries for the current server have been exhausted. For CGI scripts, you want few retries and short delays to return with a results page before the http connection times out. For unattended scripts, you may want to use many retries and long delays to have a good chance of your mail being sent even with temporary failures on your network.</p>

<p>Default: 1 (second);</p>

</dd>
<dt id="$mailcfg{tz}"><a id="mailcfg-tz"></a>$mailcfg{tz}</dt>
<dd>

<p><code>$mailcfg{tz} = &#39;+0800&#39;;</code></p>

<p>Normally, your time zone is set automatically, from the difference between <code>time()</code> and <code>gmtime()</code>. This allows you to override automatic detection in cases where your system is confused (such as some Win32 systems in zones which do not use daylight savings time: see Microsoft KB article Q148681)</p>

<p>Default: undefined (automatic detection at run-time).</p>

</dd>
<dt id="$mailcfg{port}"><a id="mailcfg-port"></a>$mailcfg{port}</dt>
<dd>

<p><code>$mailcfg{port} = 25;</code></p>

<p>Port used when none is specified in the server name.</p>

<p>Default: 25.</p>

</dd>
<dt id="$mailcfg{debug}"><a id="mailcfg-debug"></a>$mailcfg{debug}</dt>
<dd>

<p><code>$mailcfg{debug} = 0;</code></p>

<p>Prints stuff to STDERR. Current maximum is 6, which prints the whole SMTP session, except data exceeding 500 bytes.</p>

<p>Default: 0;</p>

</dd>
</dl>

<h2 id="$Mail::Sendmail::VERSION"><a id="Mail::Sendmail::VERSION"></a>$Mail::Sendmail::VERSION</h2>

<p>The package version number (you can not import this one)</p>

<h2 id="Configuration-variables-from-previous-versions"><a id="Configuration"></a>Configuration variables from previous versions</h2>

<p>The following global variables were used in version 0.74 for configuration. As from version 0.78_1, they are not supported anymore. Use the <i>%mailcfg</i> hash if you need to access the configuration from your scripts.</p>

<dl>

<dt id="$Mail::Sendmail::default_smtp_server"><a id="Mail::Sendmail::default_smtp_server"></a>$Mail::Sendmail::default_smtp_server</dt>
<dd>

</dd>
<dt id="$Mail::Sendmail::default_smtp_port"><a id="Mail::Sendmail::default_smtp_port"></a>$Mail::Sendmail::default_smtp_port</dt>
<dd>

</dd>
<dt id="$Mail::Sendmail::default_sender"><a id="Mail::Sendmail::default_sender"></a>$Mail::Sendmail::default_sender</dt>
<dd>

</dd>
<dt id="$Mail::Sendmail::TZ"><a id="Mail::Sendmail::TZ"></a>$Mail::Sendmail::TZ</dt>
<dd>

</dd>
<dt id="$Mail::Sendmail::connect_retries"><a id="Mail::Sendmail::connect_retries"></a>$Mail::Sendmail::connect_retries</dt>
<dd>

</dd>
<dt id="$Mail::Sendmail::retry_delay"><a id="Mail::Sendmail::retry_delay"></a>$Mail::Sendmail::retry_delay</dt>
<dd>

</dd>
<dt id="$Mail::Sendmail::use_MIME"><a id="Mail::Sendmail::use_MIME"></a>$Mail::Sendmail::use_MIME</dt>
<dd>

</dd>
</dl>

<h1 id="ANOTHER-EXAMPLE"><a id="ANOTHER"></a>ANOTHER EXAMPLE</h1>

<pre><code>  use Mail::Sendmail;

  print &quot;Testing Mail::Sendmail version $Mail::Sendmail::VERSION\n&quot;;
  print &quot;Default server: $Mail::Sendmail::mailcfg{smtp}-&gt;[0]\n&quot;;
  print &quot;Default sender: $Mail::Sendmail::mailcfg{from}\n&quot;;

  %mail = (
      #To      =&gt; &#39;No to field this time, only Bcc and Cc&#39;,
      #From    =&gt; &#39;not needed, use default&#39;,
      Bcc     =&gt; &#39;Someone &lt;him@there.com&gt;, Someone else her@there.com&#39;,
      # only addresses are extracted from Bcc, real names disregarded
      Cc      =&gt; &#39;Yet someone else &lt;xz@whatever.com&gt;&#39;,
      # Cc will appear in the header. (Bcc will not)
      Subject =&gt; &#39;Test message&#39;,
      &#39;X-Mailer&#39; =&gt; &quot;Mail::Sendmail version $Mail::Sendmail::VERSION&quot;,
  );


  $mail{Smtp} = &#39;special_server.for-this-message-only.domain.com&#39;;
  $mail{&#39;X-custom&#39;} = &#39;My custom additionnal header&#39;;
  $mail{&#39;mESSaGE : &#39;} = &quot;The message key looks terrible, but works.&quot;;
  # cheat on the date:
  $mail{Date} = Mail::Sendmail::time_to_date( time() - 86400 );

  if (sendmail %mail) { print &quot;Mail sent OK.\n&quot; }
  else { print &quot;Error sending mail: $Mail::Sendmail::error \n&quot; }

  print &quot;\n\$Mail::Sendmail::log says:\n&quot;, $Mail::Sendmail::log;</code></pre>

<p>Also see http://alma.ch/perl/Mail-Sendmail-FAQ.html for examples of HTML mail and sending attachments.</p>

<h1 id="CHANGES">CHANGES</h1>

<p>Main changes since version 0.79:</p>

<p>Experimental SMTP AUTH support (LOGIN PLAIN CRAM-MD5 DIGEST-MD5)</p>

<p>Fix bug where one refused RCPT TO: would abort everything</p>

<p>send EHLO, and parse response</p>

<p>Better handling of multi-line responses, and better error-messages</p>

<p>Non-conforming line-endings also normalized in headers</p>

<p>Now keeps the Sender header if it was used. Previous versions only used it for the MAIL FROM: command and deleted it.</p>

<p>See the <i>Changes</i> file for the full history. If you don&#39;t have it because you installed through PPM, you can also find the latest one on <i>http://alma.ch/perl/scripts/Sendmail/Changes</i>.</p>

<h1 id="NOTES">NOTES</h1>

<p>MIME::QuotedPrint is used by default on every message if available. It allows reliable sending of accented characters, and also takes care of too long lines (which can happen in HTML mails). It is available in the MIME-Base64 package at http://www.perl.com/CPAN/modules/by-module/MIME/ or through PPM.</p>

<p>Look at http://alma.ch/perl/Mail-Sendmail-FAQ.html for additional info (CGI, examples of sending attachments, HTML mail etc...)</p>

<p>You can use this module freely. (Someone complained this is too vague. So, more precisely: do whatever you want with it, but be warned that terrible things will happen to you if you use it badly, like for sending spam, or ...?)</p>

<p>Thanks to the many users who sent me feedback, bug reports, suggestions, etc. And please excuse me if I forgot to answer your mail. I am not always reliabe in answering mail. I intend to set up a mailing list soon.</p>

<p>Last revision: 06.02.2003. Latest version should be available on CPAN: <i>http://www.cpan.org/modules/by-authors/id/M/MI/MIVKOVIC/</i>.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Milivoj Ivkovic &lt;mi\x40alma.ch&gt; (&quot;\x40&quot; is &quot;@&quot; of course)</p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>Copyright (c) 1998-2017 Milivoj Ivkovic. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Mail::Sendmail, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Mail::Sendmail</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Mail::Sendmail</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Mail::Sendmail.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
